<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>实时库存</title>
    <th:block th:include="statics/common/page/header"></th:block>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row class="search-panel-space">
            <div class="search-group">
                <i-col span="5">
                	<label class="search-label-20">VIN:</label>
                    <i-input v-model="q.vin" @on-enter="query" placeholder="VIN" class="search-item-width-75"/>
                </i-col>
                <i-col span="5">
                	<label class="search-label-20">品牌:</label>
                    <i-input v-model="q.carSerie" @on-enter="query" placeholder="品牌" class="search-item-width-75"/>
                </i-col>
                <i-col span="5">
                    <label class="search-label-20">车型:</label>
                    <i-input v-model="q.carModel" @on-enter="query" placeholder="车型" class="search-item-width-75"/>
                </i-col>
                <i-col span="5">
                    <label class="search-label-20">款式:</label>
                    <i-input v-model="q.design" @on-enter="query" placeholder="款式" class="search-item-width-75"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>
        <Row class="search-panel-space">
        	<i-col span="5">
                <label class="search-label-20">配置:</label>
                <i-input v-model="q.config" @on-enter="query" placeholder="配置" class="search-item-width-75"/>
            </i-col>
            <i-col span="5">
                <label class="search-label-20">外观:</label>
                <i-input v-model="q.colour" @on-enter="query" placeholder="外观" class="search-item-width-75"/>
            </i-col>
            <i-col span="5">
                <label class="search-label-20">排量:</label>
                <i-input v-model="q.displacement" @on-enter="query" placeholder="排量" class="search-item-width-75"/>
            </i-col>
            <i-col span="5">
                <label class="search-label-20">变速箱:</label>
                <i-input v-model="q.speedBox" @on-enter="query" placeholder="变速箱" class="search-item-width-75"/>
            </i-col>
            <i-col span="5">
                <label class="search-label-20">动力:</label>
                <i-input v-model="q.power" @on-enter="query" placeholder="动力" class="search-item-width-75"/>
            </i-col>
            <i-col span="5">
                <label class="search-label-20">销售人员:</label>
                <i-input v-model="q.personName" @on-enter="query" placeholder="销售人员" class="search-item-width-75"/>
            </i-col>
        </Row>    
        <Row :gutter="16">
            <div class="buttons-group">
            </div>
        </Row>
	    <table id="jqGrid"></table>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="stockReal" :rules="ruleValidate" :label-width="80">
            <Form-item label="车辆vin" prop="vin">
                <i-input v-model="stockReal.vin" placeholder="车辆vin"/>
            </Form-item>
            <Form-item label="销售限价" prop="advicePrice">
                <i-input v-model="stockReal.advicePrice" placeholder="销售限价"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script th:src="@{../statics/js/stock/stocksale.js}"></script>
</body>
</html>